﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainCont.Master" AutoEventWireup="true" CodeBehind="EditQueue.aspx.cs" Inherits="Thksoft.BusinessExpansion.Process.EditQueue" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
    function ShowRole1() {
        var today = new Date(); //获得当前时间
       var ss = today.getSeconds() < 10 ? "0" + today.getSeconds() : today.getSeconds();

       var returnval = window.showModalDialog("/Templete/ManageRole.aspx?dd=" + ss, "", "dialogHeight:450px; dialogWidth:600px;");

        //谷歌浏览器兼容
        if (returnval == undefined) {
            returnval = window.returnValue;
        }
        if (returnval != undefined) {
            var str = returnval;
            var list = str.split('%');

            var mh = document.getElementById("<%=this.HId.ClientID %>");
            var ru = document.getElementById("<%=this.txtRoleName.ClientID %>");

            if (mh != null && mh != undefined) {
                document.getElementById("<%=this.HId.ClientID %>").value = list[1];
            }
            if (ru != null && ru != undefined) {
                document.getElementById("<%=this.txtRoleName.ClientID %>").value = list[0];
            }

        }
    }
    function FORM_CLOSE() {
        var index = top.layer.getFrameIndex(window.name); //获取窗口索引
        top.$("#layui-layer" + index + " .layui-layer-close").click();
    }
    function Block() {
        var option = {};
        option.Window = window;
        option.TextID = "txtBlock";
        option.ValueID = "hidBlockId";
        top.MessageBox.OpenBlock(option);
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td valign="top">
                <div class="main_show_show">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="table">
                        <tr>
                            <td class="lefttd">流程：
                            </td>
                            <td class="righttd" style="padding: 5px;">
                                <asp:DropDownList ID="ddlProcess" Width="180px" runat="server"
                                    OnSelectedIndexChanged="ddlProcess_SelectedIndexChanged" AutoPostBack="True">
                                </asp:DropDownList>
                                <span style="color: Red;">*</span>
                            </td>

                            <td class="lefttd">节  点：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlJiedian" runat="server" Width="180px">
                                </asp:DropDownList>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>

                        <tr>

                            <td class="lefttd">所属公司：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlCompany" CssClass="lblName" runat="server" Width="150px">
                                </asp:DropDownList>
                                <span style="color: Red;">*请选择为通用</span>
                            </td>

                            <td class="lefttd">审核方式：
                            </td>
                            <td class="righttd">
                                <asp:DropDownList ID="ddlCheckType" Width="180px" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                                </asp:DropDownList>
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>

                        <tr>
                            <td class="lefttd">办理方式：
                            </td>

                            <td><%--colspan="3"--%>
                                <asp:DropDownList ID="ddlblff" runat="server" CssClass="txtbox" AutoPostBack="true"
                                    OnSelectedIndexChanged="ddlblff_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="人员办理" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="岗位办理"></asp:ListItem>
                                </asp:DropDownList>
                            </td>

                            <td class="lefttd">执行顺序：
                            </td>
                            <td class="righttd">
                                <input id="txtZxXh" runat="server" class="txt_input" onkeydown="return NoNumber()"
                                    style="width: 180px;" />
                                <span style="color: Red;">*</span>
                            </td>
                        </tr>

                        <tr runat="server" id="Rychang">
                            <td class="lefttd">办理人员：
                            </td>
                            <td colspan="3">
                                <input id="Names" runat="server" type="text" style="width: 300px;" class="txt_input"
                                    value="单击选择" onclick="top.MessageBox.OpenUser({
        TextID: 'ContentPlaceHolder1_Names', ValueID: 'ContentPlaceHolder1_HIds', Window: window, Value: '?IdStr=' + document.getElementById('ContentPlaceHolder1_HIds').value})" />
                                <span style="color: Red;">*</span>
                                <asp:HiddenField ID="HIds" runat="server" Value="-1" />
                            </td>
                        </tr>

                        <tr runat="server" style="display: none;" id="Gwchang">
                            <td class="lefttd">岗位角色：
                            </td>
                            <td colspan="3">

                                <asp:TextBox ID="txtRoleName" CssClass="txt_input" Width="300px" runat="server" OnClick="top.MessageBox.OpenRole({TextID:'ContentPlaceHolder1_txtRoleName',ValueID:'ContentPlaceHolder1_HId',Window:window})"
                                    Text="单击选择"></asp:TextBox>
                                <span style="color: Red;">*</span>
                                <asp:HiddenField ID="HId" runat="server" Value="-1" />
                            </td>
                        </tr>

                        <tr>
                            <td class="lefttd">可见模板：
                            </td>
                            <td colspan="3">
                                <input id="txtBlock" type="text" style="width: 300px;" class="txt_input" runat="server"
                                    value="单击请选择" readonly="readOnly" onclick="top.MessageBox.OpenBlock({TextID:'ContentPlaceHolder1_txtBlock',ValueID:'ContentPlaceHolder1_hidBlockId',Window:window})" />
                                <asp:HiddenField ID="hidBlockId" runat="server" />
                            </td>
                        </tr>

                        <tr id="trType" runat="server" style="display: none">
                            <td class="lefttd">特定关联表：
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="txtGLTB" Width="180px" runat="server" CssClass="txt_input"></asp:TextBox>
                            </td>

                            <td class="lefttd">特定关联字段人员：
                            </td>
                            <td class="righttd">
                                <asp:TextBox ID="txtGLRY" Width="180px" CssClass="txt_input" runat="server"></asp:TextBox>
                            </td>
                        </tr>

                        <tr>
                            <td class="lefttd">权限控制：
                            </td>
                            <td style="text-align: left; padding-left: 5px;" colspan="3">
                                <asp:CheckBox ID="chkAllowZX" runat="server" Text="允许注销" />
                                <asp:CheckBox ID="chkSpicaltran" runat="server" Text="特殊流转" />
                            </td>
                        </tr>
                        <tr>
                            <td class="lefttd">操作人员：
                            </td>
                            <td class="righttd">
                                <asp:Label ID="lblCzRen" runat="server" Text="Label" CssClass="lblName"></asp:Label>
                            </td>

                            <td class="lefttd">操作时间：
                            </td>
                            <td class="righttd">
                                <asp:Label ID="lblCzTime" runat="server" Text="Label" CssClass="lblName"></asp:Label>
                            </td>
                        </tr>

                        <tr>
                            <td style="padding-left: 40%;" colspan="4">
                                <asp:Button ID="btnSave" runat="server" CssClass="bt_css_s" Text="保存" OnClick="btnSave_Click" />&nbsp;
                            <asp:Button ID="Button1" runat="server" CssClass="bt_css_s" Text="返回" OnClick="btnReturn_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>